<?php
require('../../conobj.php');

define('OT_ucROOT', dirname(__FILE__) .'/');

if (strlen($systemArr['SYS_frameMode']) > 0){
	/*
		Frame页面加载模式：
		DENY：浏览器拒绝当前页面加载任何Frame页面
		SAMEORIGIN：frame页面的地址只能为同源域名下的页面
		ALLOW-FROM：允许frame加载的页面地址
	*/
	header('X-Frame-Options:'. $systemArr['SYS_frameMode']);
}

if ($systemArr['SYS_isClose']==10){
	// 网站关闭
	die('
	<!DOCTYPE html>
	<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
		<title>网站暂时关闭中...</title>
	</head>
	<body>
		<table align="center" cellpadding="0" cellspacing="0"><tr><td align="left" style="font-size:14px;">'. $systemArr['SYS_closeNote'] .'</td></tr></table>
	</body>
	</html>
	');
}

if (AppWap::Jud() && Is::Mobile()){
	$wapArr = Cache::PhpFile('wap');

	define('OT_wapROOT', dirname(dirname(__FILE__)) .'/');
	define('OT_MODE', 'wap');
}else{
	$tplSysArr = Cache::PhpFile('tplSys');

	define('OT_MODE', 'pc');
}
?>